//
//  OrderPayManager.h
//  ImGuider
//
//  Created by 李陆涛 on 2017/12/14.
//  Copyright © 2017年 imguider. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TicketOrderModel.h"

@interface OrderPayManager : NSObject

+ (instancetype)sharedManager;

/**
 支付门票
 
 @param model 商品ID
 @param payType 支付方式
 @param vc 当前vc
 @param block 成功回调
 */


/**
 支付门票

 @param model 门票model
 @param payType 支付类型
 @param vc vc
 @param block --
 */
- (void)ticketModel:(UploadTicketOrderModel *)model payType:(PayType)payType vc:(UIViewController *)vc andBlock:(void (^)(NSString *result, NSError *error))block;



/**
 重新下单

 @param ticketorderid 门票订单ID
 @param payType 支付类型
 @param vc vc
 @param block --
 */
- (void)reticketWithOrderID:(NSString *)ticketorderid payType:(PayType)payType vc:(UIViewController *)vc andBlock:(void (^)(NSString *result, NSError *error))block;

// 代理回调，appdelegate中使用
- (void)paymentResultCallback:(id)result payType:(PayType)type;

@end
